Move config variables to config.php
Login fixes