Modification to user bean. Added new method to UserDao - getUserByLogin.