updated application controller with name in user model