add expiration time and password check using regex