Refactored the routes related to the registration, now redirects work with flash data.