Moved login and register to UserManager, put all error and successful returns to CommunicationUtil