update to password exercise
added alert for method invoking