register page now validates data

and checks if user already exists