Fixed miss placement of code in user#show instead of user#edit action.