Added invalid login notification.
Changed ConnectionFactory to work with both local dev db and heroku