added validation checks to login and registration

Signed-off-by: Larry Mason <lmason@HungryProgrammer.com>