adding proper auto increment tag on db script and fixing redirect on submitRegistration error