Refactored routes into controllers. Also now passing url params as GET params when registration fails so URL can still be copy/pasted and refreshed.