fixed cancel-button, added toggle behaviour for register link