added can_edit? method to user model