added validation registration, auth