comitt added registration with ajax error checking