Added bunch of stuff to system php files

login.php, register.php, edited config.php + main.js