Moved register to a separate php file