Create Password function for logging with pass