Added unit testing and user registration with validation and security