added user id to registration
added error checking to form