Added logic for entering the first time password and unlocking notes