resolve bug in login