Added notification of failed login attempts.
Problem with global variable.
Defined global variable.
Subprocess call not in path.
Subprocess call needs list?
Added hashbang to script.