Update register.php

Fixed bug that prevented account creation login. Credit: users "etiennelepagel" and "letens".