Small fixes

Made dashboard doc controls vanish if no doc is selected; Changed
buttons in login and register form; Other small fixes
Merge remote-tracking branch 'origin/develop' into deploy