updating LoginController and EJB