Added Some logic in Register Servlet