registration part functionality with jquery added