login controller updated.