Removed tests for functionality that has been moved to othe plugins
Fixed whitespace
Refactored the login process