modify  header's view and controller to check the status of user