insert successfully

Cannot insert if redirect to another page after that
fixing insert