Master password logics implemented