Fix clear post raputation

Reorganise some code lines
Adjust code for validation
Fix displaying user avatar during user rating
Improve displaying reputation
Prevent double click action

Adjust code for validation