refactored login dialog and added js specs
introduced mocha-chai-specs for login dialog view