Made redirection to previous page after sign up