add race count to user model and fix race and profile authorisation issues.