user class, reg script

the user class has been added.
the php script for registration of the user is done as well