Registration validation

Added validation to registration