Finished Client Side Registration with php backend