first commit for registration validation javascript code