Submit button disabled if input of form is invalid and clicking if it's enabled invokes a function call.
Fixed problem where errors with input weren't shown and submit button wasn't disabled when visiting the register page.
Added form submit functionality and feedback about it
Added JSDoc comments