modified prompt messages, added boolean checks for user authentication.