added exit
finished php of registration
fixed glitches in database insertion