Added redirect ability after a successful login.