Fixed checks for userLoginID and userViewID, also updated html