Added validations for Registration For for User

The year now will only accept number from 2000-2099
Active field accepts only 0 or 1
Phone filed accepts only 10 digits
Username filed accepted only is the user is not yet in the user table.
For the username please run this commands in the database:

mysql> delete from user where not  username='Admin';
It deltas all the users from the username table only Admin stays if you
have one.

mysql> alter table user add unique (username);
It’s for making the username unique in the user table.

The emergency table is connected with user table. So I removed some
users that had connection with emergency table and it gave me some
errors. Run following commands:
select * from emergency; ( I see 3 different emergencies with some
deleted user id’s in user table)
mysql> update emergency set user_id=38 ; (I have one user active with
this id so I updated that now the user 38 was updating emergencies)