implemented Login by email/password and Login by device-Id. Tested and refactored some other classes. #28