Added validation to Registration form as well as Ajax