Finished PHP registration/login checking