added simple registration and user validation