Fixing issue where login.main does not exist