some fixes for users controller