added settings save support and remember password feature