Removed redundant code.
Added tests to CTFLoginViewControllerTests and cleanup in CTFDefailsJoinViewControllerTests.