Added documentation to the functions in api/user.go