Wired up login confirmation to redirect to the next page on submit