added validation in the registration form and todo's for later implementation of the api