added email to login and made login unique through various error messages