checking for credentials, bouncing to MIDAS login as needed