Registration error support

Build in the error class for the registration.
Also the checks within the Jquery are build in. For now i used a alert to display the errors. this need to be improved in the future.