so it's not kind of a problem, but when I'm trying to validate my form I usually use a large amount of
if(){
}else if(){
}
.
.
.
else{
}
but it's both time-consuming and in the means of clean code, it doesn't really appear good. So is there kind of a Form validation component or a better way to do this? any reference would be super useful.