finished support for email signin with validations and error pages