implementing basic password storage