private fun updateData(user: User): Unit
This is a function to handle updating a user's data
user - User The user to update data of
user