quick syntax error thats why youre not supposed to fix things when your tired.
added email validation client and server sideand moved the email and password validation into functions in the helper file