login controller fix