when you successfully registered it will redirect login view automatically.