improved login and print messages