Finished value coercion and fixed 500 error for user authentication