Password function

Created function to check password