added logic to application controller to direct users after sign in