Added register page
Added document ready to redirect