added redirect to index page after user successfully 'registers', otherwise render the sign up page again