Fixes Issue #23

Add check for correct password during authentication