Removed codeigniter and added ajax call to add user to database