Function getMessage revised.
- Implemented ability for input check
- Returns proper messages