fixed redirect after signup and login