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

--HG--
extra : source : d87d00718279ceef0c3bb5e58d477eae7e85b83e