login/registration done but header redirect to dashboard not working