user login function has been modified so that we user can update