fix login setting