Added PHP code for registration