tried adding update function to user, having trouble updating the model