FixedFixed ELGGSOCIAL-31: Honour register and login settings in main code, not just UI - Also a couple of cosmetic changes to code in authenticate.php