fixed bug redirect to login