login controller updated