Improved layout of login dialog

Screenshots: [before](http://i.imgur.com/D03x1oA.png), [after](http://i.imgur.com/oMXwjQw.png).