Made e-mail validation possible and fixed some bugs in the login checks.