Resolved error and added redirect to success page