login controller and notifications