Fixed login controller