changed registration, added validation for reg. added placeholders for reg