fix bug where user couldnt login in when heimcontroljs url wasnt present