fix bug from login process to dashboard