Small fixes

Made dashboard doc controls vanish if no doc is selected; Changed
buttons in login and register form; Other small fixes