Improve login process error handling

Errors encountered while logging in and connecting to a user to a VM
should now be more informative.