Exception Handling added for Create Logic