frontend login refactored, loginlogoutctrl removed