Reworked login system, required email address and added password reset