Fix login controller