Redirect the user on referer after registration