Fixed login in controllers