Added basic validation to registration form