state fix for login