Update database with users new password and set token to nil