Add EJB to hash password

Check password when logging in

Change implementation of equals() for entites