Fixed a bug on RegistrationServlet

some of the code outside of the try block were force inserting data with
null values.it has been fixed.