working on registration validation