email and password validation, not entirely functional yet