Fixes for POS sql error and saving when till not set.
Fix for not allowing users to lock themselves out of system