Extract get_current_user function.
Add JSON validation.
Move validation isinstance into new function.
Fix validation messages.
Remove unused parameter.
Adjust validation to accommodate query parameters.