fix login warning