Checks and extra logging for login issues