adding unit tests
fixing some bugs after writing the tests
email validation input changed to just the email address