added function validate_guest to user class