added security settings, fixed password change bug and added clear for cache

Signed-off-by: Karl Merkli <info@karl-merkli.ch>