login handling and register handling moved to loginCOntroller and RegisterController