might make sense to return TRUE/FALSE to show whether the login happened (and replace the ```prompt_login()``` ) calls