fixing login controller