Code refactorization for PUT /user
Fixed incorrect user email update.
Refactored GET /user/{user}
Refactored GET /user/getByUsername/{username}