#13 partial logic for registration with unique email validation
#13 polished login and registration