worked on registration and validation