Fixing issue reported by Max, cannot log in after saving/approving batch